package com.hoshiicloud.goods.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.goods.entity.goods.GoodsSpecifications;
import com.hoshiicloud.goods.vo.GoodsSpecificationsVo;

import java.util.List;

/**
 * <p>
 * 商品规格 服务类
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-06-04
 */
public interface GoodsSpecificationsService extends IService<GoodsSpecifications> {
    Page<GoodsSpecifications> getPage(Page<GoodsSpecifications> page, Wrapper<GoodsSpecifications> queryWrapper, String key);

    GoodsSpecifications getById(Long id);

    boolean save(GoodsSpecifications entity);

    boolean updateById(GoodsSpecifications entity);

    boolean deleteById(Long id);

    List<GoodsSpecifications> getByIds(List<Long> ids, String key);

    /**
     * 根据 规格Id 获取规格信息
     */
    GoodsSpecificationsVo getSpecById(Long specId);
}
